package com.meilai.project.controller.web.adMake.dto;

import com.meilai.project.constant.AdMakeConfirmResultEnum;
import lombok.Data;

@Data
public class BillAdMakeConfirmResult {
    private int resultCode;
    private String resultMessage;

    public static BillAdMakeConfirmResult getResult(AdMakeConfirmResultEnum enumObj){
        BillAdMakeConfirmResult result = new BillAdMakeConfirmResult();
        result.setResultCode(enumObj.getId());
        result.setResultMessage(enumObj.getMessage());
        return result;
    }
}
